package com.library.bookmanagement.service;

import com.github.pagehelper.Page;
import com.library.bookmanagement.entity.Admin;
import com.library.bookmanagement.entity.SuperAdmin;
import com.library.bookmanagement.util.ResultUtil;

import java.util.List;
import java.util.Map;

/**
 * @author ：ZXM
 * @date ：Created in 2020/5/9 9:11
 * @description：超级管理员业务逻辑层接口
 * */
public interface SuperAdminService {

    ResultUtil<Map<String,Object>> QueryAdminAll(Integer pageNum, Integer pageSize);


    ResultUtil addAdmin(Admin admin);

    void addSuperAdmin(SuperAdmin superAdmin);

    ResultUtil deleteById(List<Integer> id);

    ResultUtil<Admin> queryAdminById(Integer adminId);

    ResultUtil editAdminInfo(Admin admin);

    ResultUtil editAdminPassword(Integer adminId);
}
